/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.adv.entity;

import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 所有广告Entity
 *
 * @author 罗天文
 * @version 2018-03-19
 */
public class HkAllAdv extends DataEntity<HkAllAdv> {

    private static final long serialVersionUID = 1L;
    private String imgSrc;        // 图片或者视频地址
    private String link;        // 链接
    private String note;        // 说明
    private String imgRank;        // 序号
    private String category;        // 所属分类
    private String title;        // 标题
    private String type;        // 类型 1自媒体 2城市广告3传统文化4企业广告
    private String sourceId;        // 源id
    private String state;        // 状态
    private String countryId;        // 国家
    private String provinceId;        // 省
    private String cityId;        // 市
    private String integral;        // 积分
    private String goodsIds;        // 物品
    private String tag;        // 标签
    private String manageCategory;        // 管理分类
    private String enterpriseName;        // 企业名称
    private String integralCount;        // 总积分
    private String enterpriseId;        // 企业id
    private String comment;        // 是否评论
    private Date beginCreateDate;        // 开始 创建时间
    private Date endCreateDate;        // 结束 创建时间
    private String coverImgSrc;        // 封面图片
    private String coverLink;        // 封面图片链接
    private HkUser user;  //用户

    public HkUser getUser() {
        return user;
    }

    public void setUser(HkUser user) {
        this.user = user;
    }
    public HkAllAdv() {
        super();
    }

    private String vedioLength;//视频长度
    private String coverImgWidth;        // 封面图片
    private String coverImgHeight;        // 封面图片
    private String isWeb;

    public String getCoverImgWidth() {
        return coverImgWidth;
    }

    public void setCoverImgWidth(String coverImgWidth) {
        this.coverImgWidth = coverImgWidth;
    }

    public String getCoverImgHeight() {
        return coverImgHeight;
    }

    public void setCoverImgHeight(String coverImgHeight) {
        this.coverImgHeight = coverImgHeight;
    }

    public String getVedioLength() {
        return vedioLength;
    }

    public void setVedioLength(String vedioLength) {
        this.vedioLength = vedioLength;
    }

    public String getCoverImgSrc() {
        return coverImgSrc;
    }

    public void setCoverImgSrc(String coverImgSrc) {
        this.coverImgSrc = coverImgSrc;
    }

    public String getCoverLink() {
        return coverLink;
    }

    public void setCoverLink(String coverLink) {
        this.coverLink = coverLink;
    }

    public HkAllAdv(String id) {
        super(id);
    }

    @Length(min = 0, max = 200, message = "图片或者视频地址长度必须介于 0 和 200 之间")
    public String getImgSrc() {
        return imgSrc;
    }

    public void setImgSrc(String imgSrc) {
        this.imgSrc = imgSrc;
    }

    @Length(min = 0, max = 200, message = "链接长度必须介于 0 和 200 之间")
    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    @Length(min = 0, max = 200, message = "说明长度必须介于 0 和 200 之间")
    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Length(min = 0, max = 200, message = "序号长度必须介于 0 和 200 之间")
    public String getImgRank() {
        return imgRank;
    }

    public void setImgRank(String imgRank) {
        this.imgRank = imgRank;
    }

    @Length(min = 0, max = 1, message = "所属分类长度必须介于 0 和 1 之间")
    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    @Length(min = 0, max = 200, message = "标题长度必须介于 0 和 200 之间")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Length(min = 0, max = 1, message = "类型 1自媒体 2城市广告3传统文化4企业广告长度必须介于 0 和 1 之间")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    @Length(min = 0, max = 1, message = "状态长度必须介于 0 和 1 之间")
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Length(min = 0, max = 32, message = "国家长度必须介于 0 和 32 之间")
    public String getCountryId() {
        return countryId;
    }

    public void setCountryId(String countryId) {
        this.countryId = countryId;
    }

    @Length(min = 0, max = 32, message = "省长度必须介于 0 和 32 之间")
    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    @Length(min = 0, max = 32, message = "市长度必须介于 0 和 32 之间")
    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    @Length(min = 0, max = 11, message = "积分长度必须介于 0 和 11 之间")
    public String getIntegral() {
        return integral;
    }

    public void setIntegral(String integral) {
        this.integral = integral;
    }

    @Length(min = 0, max = 200, message = "物品长度必须介于 0 和 200 之间")
    public String getGoodsIds() {
        return goodsIds;
    }

    public void setGoodsIds(String goodsIds) {
        this.goodsIds = goodsIds;
    }

    @Length(min = 0, max = 200, message = "标签长度必须介于 0 和 200 之间")
    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    @Length(min = 0, max = 200, message = "管理分类长度必须介于 0 和 200 之间")
    public String getManageCategory() {
        return manageCategory;
    }

    public void setManageCategory(String manageCategory) {
        this.manageCategory = manageCategory;
    }

    @Length(min = 0, max = 100, message = "企业名称长度必须介于 0 和 100 之间")
    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
    }

    @Length(min = 0, max = 11, message = "总积分长度必须介于 0 和 11 之间")
    public String getIntegralCount() {
        return integralCount;
    }

    public void setIntegralCount(String integralCount) {
        this.integralCount = integralCount;
    }

    @Length(min = 0, max = 32, message = "企业id长度必须介于 0 和 32 之间")
    public String getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(String enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    @Length(min = 0, max = 1, message = "是否评论长度必须介于 0 和 1 之间")
    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Date getBeginCreateDate() {
        return beginCreateDate;
    }

    public void setBeginCreateDate(Date beginCreateDate) {
        this.beginCreateDate = beginCreateDate;
    }

    public Date getEndCreateDate() {
        return endCreateDate;
    }

    public void setEndCreateDate(Date endCreateDate) {
        this.endCreateDate = endCreateDate;
    }

}